{{addToMap . "ContentTitle" "修改密码" }}
<div class="box box-info">
    <div class="box-header with-border">
      <h3 class="box-title">{{.AdminUser.Name}}({{.AdminUser.Username}})</h3>
    </div><!-- /.box-header -->
    <!-- form start -->
    <form class="form-horizontal" method="POST">
      <div class="box-body">
        <div class="form-group">
          <label for="user-oldpassword" class="col-sm-4 control-label">原密码</label>
          <div class="col-sm-4">
            <input type="password" class="form-control" name="oldpassword" id="user-oldpassword" value="" placeholder="原密码">
          </div>
        </div>
        <div class="form-group">
          <label for="user-password" class="col-sm-4 control-label">新密码</label>
          <div class="col-sm-4">
            <input type="password" class="form-control" name="password" id="user-password" value="" placeholder="新密码">
          </div>
        </div>
        <div class="form-group">
          <label for="user-repassword" class="col-sm-4 control-label">重复新密码</label>
          <div class="col-sm-4">
            <input type="password" class="form-control" name="repassword" id="user-repassword" value="" placeholder="重复新密码">
          </div>
        </div>
      </div><!-- /.box-body -->
      <div class="box-footer">
        <button type="submit" class="btn btn-primary center-block">修改</button>
      </div><!-- /.box-footer -->
    </form>
</div>

<script type="text/javascript">
$(function(){
{{if .FormErrs}}
var formErrs = {{.FormErrsJson}};
showFormErrsAndAlarms(formErrs, function(f){
    return $("input[name="+f+"]");
}, function(input, f){
    return input.parent().parent();
});
{{end}}
});
</script>